package services

import (
	"genealogy/dao"
	"genealogy/models"
)

func GetAllPerson(person map[string]interface{}) (error, []models.Person, int64) {
	err, personData, total := dao.GetAllPerson(person)
	return err, personData, total
}
func DelPerson(id string) error {
	err := dao.DelPerson(id)
	return err
}

func UpdatePerson(Person models.Person) error {
	err := dao.UpdatePerson(Person)
	return err
}

func AddPerson(Person models.Person) error {
	err := dao.AddPerson(Person)
	return err
}
